count = 0
for i in range(1, 5):
    for j in range(1, 5):
        for k in range(1, 5):
            if (i != j & i != k & j != k):
                print(str(i) + str(j) + str(k))
                count += 1
print("总共有：" + str(count))
